home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…ch: Other People's Memory / ADC Developer CD (1993-03) (''Other People's Memory'')_iso / Dev.CD Mar 93.iso / Development Platforms / Apple II / Essentials / APW Interfaces / AInclude / E16.Window < prev    next >
Encoding:
Text File  |  1992-02-26  |  7.4 KB  |  226 lines  |  [TEXT/MPS ]

  1. ; File:  E16.Window
  2. ;
  3. ;
  4. ; Copyright Apple Computer, Inc. 1986-92
  5. ; All Rights Reserved
  6. ;
  7. ;
  8. paramLenErr GEQU $0E01 ; first word of parameter list is the wrong size
  9. allocateErr GEQU $0E02 ; unable to allocate window record
  10. taskMaskErr GEQU $0E03 ; reserved bits are not clear in wmTaskMask
  11. compileTooLarge GEQU $0E04 ; Compiled text is larger than 64 KB
  12. wNoConstraint GEQU $0000 ; No constraint on movement.
  13. wHAxisOnly GEQU $0001 ; Horizontal axis only.
  14. wVAxisOnly GEQU $0002 ; Vertical axis only.
  15. FromDesk GEQU $00 ; Subtract region from desktop
  16. ToDesk GEQU $1 ; Add region to desktop
  17. GetDesktop GEQU $2 ; Get Handle of Desktop region
  18. SetDesktop GEQU $3 ; Set Handle of Desktop region
  19. GetDeskPat GEQU $4 ; Address of  pattern or drawing routine
  20. SetDeskPat GEQU $5 ; Change Address of  pattern or drawing routine
  21. GetVisDesktop GEQU $6 ; Get destop region less visible windows.
  22. BackGroundRgn GEQU $7 ; For drawing directly on desktop.
  23. CheckForNewDeskMsg GEQU $8 ; Force rechecking message #2
  24. toBottom GEQU $FFFFFFFE ; To send window to bottom.
  25. topMost GEQU $FFFFFFFF ; To make window top.
  26. bottomMost GEQU $0000 ; To make window bottom.
  27. tmMenuKey GEQU $00000001
  28. tmUpdate GEQU $00000002
  29. tmFindW GEQU $00000004
  30. tmMenuSel GEQU $0008
  31. tmOpenNDA GEQU $0010
  32. tmSysClick GEQU $0020
  33. tmDragW GEQU $0040
  34. tmContent GEQU $0080
  35. tmClose GEQU $0100
  36. tmZoom GEQU $0200
  37. tmGrow GEQU $0400
  38. tmScroll GEQU $0800
  39. tmSpecial GEQU $1000
  40. tmCRedraw GEQU $2000
  41. tmInactive GEQU $4000
  42. tmInfo GEQU $8000
  43. tmContentControls GEQU $00010000
  44. tmControlKey GEQU $00020000
  45. tmControlMenu GEQU $00040000
  46. tmMultiClick GEQU $00080000
  47. tmIdleEvents GEQU $00100000
  48. wNoHit GEQU $0000 ; retained for back compatibility. 
  49. inNull GEQU $0000 ; retained for back compatibility
  50. inKey GEQU $0003 ; retained for back compatibility
  51. inButtDwn GEQU $0001 ; retained for back compatibility
  52. inUpdate GEQU $0006 ; retained for back compatibility
  53. wInDesk GEQU $0010 ; On Desktop
  54. wInMenuBar GEQU $0011 ; On system menu bar
  55. wClickCalled GEQU $0012 ; system click called
  56. wInContent GEQU $0013 ; In content region
  57. wInDrag GEQU $0014 ; In drag region
  58. wInGrow GEQU $0015 ; In grow region, active window only
  59. wInGoAway GEQU $0016 ; In go-away region, active window only
  60. wInZoom GEQU $0017 ; In zoom region, active window only
  61. wInInfo GEQU $0018 ; In information bar
  62. wInSpecial GEQU $0019 ; Item ID selected was 250 - 255
  63. wInDeskItem GEQU $001A ; Item ID selected was 1 - 249
  64. wInFrame GEQU $1B ; in Frame, but not on anything else
  65. wInactMenu GEQU $1C ; 'selection' of inactive menu item
  66. wClosedNDA GEQU $001D ; desk accessory closed
  67. wCalledSysEdit GEQU $001E ; inactive menu item selected
  68. wInSysWindow GEQU $8000 ; hi bit set for system windows
  69. wDraw GEQU $00 ; Draw window frame command.
  70. wHit GEQU $01 ; Hit test command.
  71. wCalcRgns GEQU $02 ; Compute regions command.
  72. wNew GEQU $03 ; Initialization command.
  73. wDispose GEQU $04 ; Dispose command.
  74. wGetDrag GEQU 5    ; Return address of outline drawing handler
  75. wGrowFrame GEQU 6    ; Draw outline of window being resized
  76. wRecSize GEQU 7    ; Return size of additional space neeed in the windrec
  77. wPos GEQU 8    ; Return RECT that is the window's portRect
  78. wBehind GEQU 9    ; Return where the window should be placed in the list
  79. wCallDefProc GEQU 10    ; Generic call to the defproc
  80. fHilited GEQU $0001 ; Window is highlighted.
  81. fZoomed GEQU $0002 ; Window is zoomed.
  82. fAllocated GEQU $0004 ; Window record was allocated.
  83. fCtlTie GEQU $0008 ; Window state tied to controls.
  84. fInfo GEQU $0010 ; Window has an information bar.
  85. fVis GEQU $0020 ; Window is visible.
  86. fQContent GEQU $0040
  87. fMove GEQU $0080 ; Window is movable.
  88. fZoom GEQU $0100 ; Window is zoomable.
  89. fFlex GEQU $0200
  90. fGrow GEQU $0400 ; Window has grow box.
  91. fBScroll GEQU $0800 ; Window has horizontal scroll bar.
  92. fRScroll GEQU $1000 ; Window has vertical scroll bar.
  93. fAlert GEQU $2000
  94. fClose GEQU $4000 ; Window has a close box.
  95. fTitle GEQU $8000 ; Window has a title bar.
  96. windSize GEQU $00D4 ; Size of WindRec.
  97. wmTaskRecSize GEQU $002E ; Size of WmTaskRec.
  98. wTrackZoom GEQU $001F
  99. wHitFrame GEQU $0020
  100. wInControl GEQU $0021
  101. wInControlMenu GEQU $0022
  102. ; offset constants for WindColor
  103. oframeColor GEQU 0
  104. otitleColor GEQU 2
  105. otBarColor GEQU 4
  106. ogrowColor GEQU 6
  107. oinfoColor GEQU 8
  108. ; offset constants for WindRec
  109. ;owNext GEQU 0    <- not included in record returned by toolbox calls
  110. oport GEQU 0  ; Window's port
  111. owDefProc GEQU oport+170
  112. owrRefCon GEQU owDefProc+4
  113. owContDraw GEQU owrRefCon+4
  114. owReserved GEQU owContDraw+4  ; Space for future expansion
  115. owStrucRgn GEQU owReserved+4  ; Region of frame plus content.
  116. owContRgn GEQU owStrucRgn+4  ; Content region.
  117. owUpdateRgn GEQU owContRgn+4  ; Update region.
  118. owControls GEQU owUpdateRgn+4  ; Window's control list.
  119. owFrameCtrls GEQU owControls+4  ; Window frame's control list.
  120. owFrame GEQU owFrameCtrls+4
  121. ; offset constants for ParamList
  122. oparamLength GEQU 0  ; Parameter to NewWindow. 
  123. owFrameBits GEQU 2  ; Parameter to NewWindow.
  124. owTitle GEQU 4  ; Parameter to NewWindow.
  125. owRefCon GEQU 8  ; Parameter to NewWindow.
  126. owZoom GEQU 12  ; Parameter to NewWindow.
  127. owColor GEQU 20  ; Parameter to NewWindow.
  128. owYOrigin GEQU 24  ; Parameter to NewWindow.
  129. owXOrigin GEQU 26  ; Parameter to NewWindow.
  130. owDataH GEQU 28  ; Parameter to NewWindow.
  131. owDataW GEQU 30  ; Parameter to NewWindow.
  132. owMaxH GEQU 32  ; Parameter to NewWindow.
  133. owMaxW GEQU 34  ; Parameter to NewWindow.
  134. owScrollVer GEQU 36  ; Parameter to NewWindow.
  135. owScrollHor GEQU 38  ; Parameter to NewWindow.
  136. owPageVer GEQU 40  ; Parameter to NewWindow.
  137. owPageHor GEQU 42  ; Parameter to NewWindow.
  138. owInfoRefCon GEQU 44  ; Parameter to NewWindow.
  139. owInfoHeight GEQU 48  ; height of information bar
  140. owFrameDefProc GEQU 50  ; Parameter to NewWindow.
  141. owInfoDefProc GEQU 54  ; Parameter to NewWindow.
  142. owContDefProc GEQU 58  ; Parameter to NewWindow.
  143. owPosition GEQU 62  ; Parameter to NewWindow.
  144. owPlane GEQU 70  ; Parameter to NewWindow.
  145. owStorage GEQU 74  ; Parameter to NewWindow.
  146. ; offset constants for DeskMessageRecord
  147. odmreserved GEQU 0
  148. odmmessageType GEQU 4
  149. odmdrawType GEQU 6
  150.  
  151. ; DoModalWindow flag values
  152. mwMovable GEQU $8000
  153. mwUpdateAll GEQU $4000
  154. mwDeskAcc GEQU $0010
  155. mwIBeam GEQU $0008
  156. mwMenuKey GEQU $0004
  157. mwMenuSelect GEQU $0002
  158. mwNoScrapForLE GEQU $0001
  159.  
  160. ; HandleDiskInsert flag values (bit flags)
  161. hdiScan GEQU $8000
  162. hdiHandle GEQU $4000
  163. hdiUpdate GEQU $2000
  164. hdiReportEjects GEQU $1000
  165. hdiNoDelay GEQU $0800
  166. hdiDupDisk GEQU $0400
  167. hdiCheckTapeDrives GEQU $0200
  168. hdiUnreadable GEQU $0100
  169. hdiMarkOffline GEQU $0001
  170.  
  171. ; HandleDiskInsert result flag values (bit flags)
  172. hdiFormatted GEQU $0002
  173. hdiEjection GEQU $0001
  174.  
  175. ; constants for AlertWindow alertFlags
  176. awCString GEQU $0000
  177. awPString GEQU $0001
  178. awPointer GEQU $0000
  179. awHandle GEQU $0002
  180. awResource GEQU $0004
  181. awTextFullWidth GEQU $0008
  182. awForceBeep GEQU $0010
  183. awButtonLayout GEQU $0020
  184. awNoDevScan GEQU $0040
  185. awNoDisposeRes GEQU $0080
  186. awWatchForDisk GEQU $0100
  187. awIconIsResource GEQU $0200
  188. awFullColor GEQU $0400
  189.  
  190. ; custom defproc dRequest codes (from TN #42)
  191. wSetOrgMask GEQU 0
  192. wSetMaxGrow GEQU 1
  193. wSetScroll GEQU 2
  194. wSetPage GEQU 3
  195. wSetInfoRefCon GEQU 4
  196. wSetInfoDraw GEQU 5
  197. wSetOrigin GEQU 6
  198. wSetDataSize GEQU 7
  199. wSetZoomRect GEQU 8
  200. wSetTitle GEQU 9
  201. wSetColorTable GEQU 10
  202. wSetFrameFlag GEQU 11
  203. wGetOrgMask GEQU 12
  204. wGetMaxGrow GEQU 13
  205. wGetScroll GEQU 14
  206. wGetPage GEQU 15
  207. wGetInfoRefCon GEQU 16
  208. wGetInfoDraw GEQU 17
  209. wGetOrigin GEQU 18
  210. wGetDataSize GEQU 19
  211. wGetZoomRect GEQU 20
  212. wGetTitle GEQU 21
  213. wGetColorTable GEQU 22
  214. wGetFrameFlag GEQU 23
  215. wGetInfoRect GEQU 24
  216. wGetDrawInfo GEQU 25
  217. wGetStartInfoDraw GEQU 26
  218. wGetEndInfoDraw GEQU 27
  219. wZoomWindow GEQU 28
  220. wStartDrawing GEQU 29
  221. wStartMove GEQU 30
  222. wStartGrow GEQU 31
  223. wNewSize GEQU 32
  224. wTask GEQU 33
  225.  
  226.